package dev.alm.java11boot276.controller;

import dev.alm.java11boot276.common.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping("withToken")
    public Result withToken() {
        return Result.success("with token");
    }

    @GetMapping("withoutToken")
    public Result withoutToken() {
        return Result.success("without token");
    }

}
